<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

    <head>
        <!-- Meta -->
        <meta http-equiv="Content-type" content="text/html;charset=UTF-8"> 
            <!-- End of Meta -->

            <title><?php echo $title; ?></title>   
            <link rel="icon" type="image/ico" href="<?php echo base_url() ?>images/logicon.png"/>
            <!--styleshets CSS
            <link href="<?php echo base_url() ?>css/login.css" rel="stylesheet" />	
            <link href="<?php echo base_url() ?>css/login_box.css" rel="stylesheet" />-->
			<link href="<?php echo base_url() ?>css/style.css" rel="stylesheet" type="text/css" media="all" />
            <link href="<?php echo base_url() ?>css/styles.css" rel="stylesheet" />
            <link href="<?php echo base_url() ?>css/1140.css" rel="stylesheet" />

            <!--scripts js-->
            <script type="text/javascript" src="<?php echo base_url() ?>js/jquery-1.2.3.pack.js"></script>
            <script type="text/javascript" src="<?php echo base_url() ?>js/jquery-1.7.2.js"></script>
            <script type="text/javascript" src="<?php echo base_url() ?>js/jquery-1.7.2.min.js"></script>
			<!--<script type="text/javascript" src="<?php echo base_url() ?>js/jquery-1.3.1.min.js"></script>-->
			<script type="text/javascript" src="<?php echo base_url() ?>js/jquery.betterTooltip.js"></script>

            <script type="text/javascript">
                //<![CDATA[
                base_url = '<?php echo base_url(); ?>';
                //]]>
            </script>
			
			<script type="text/javascript">
				/* $(document).ready(function(){
					$('.metas').betterTooltip({speed: 150, delay: 300});
				});
				
				$(document).ready(function(){
					$('.editar').betterTooltip({speed: 150, delay: 300});
				}); */
			</script>
    </head>
    <body>  
        <div id="header-wrapper" class="container"> 
            <div id="user-options" class="row"> 
            	<div class="threecol">
            		<a href="<? echo base_url() ?>home">
            			<img src="<?php echo base_url() ?>images/logo.png"/>
            		</a>
            </div> 
            	
                                                        
            <div id="user-account" class="row"> 
						<div class="ninecol last"> 
							<a href="<? echo base_url() ?>home/logout">Logout</a> 
							<?
               if ($this->session->userdata('logged_in')) {
						if ((isset($username) && isset($name))) {
					?><span>|</span> 
							<span>Bienvenido, <strong><? echo trim($username); ?></strong></span> 
							<? } ?> 
   	         <? } ?> 
						</div> 
   	       </div>
             <div class="ninecol last fixed"></div> 
          </div>
        </div>  
         
         <div class="container"> <!--1-->
         	<div class="row">  <!--2-->
        		 <?php $this->load->view("user_views/dashboard_sidebar"); ?> 
               <div id="content" class="ninecol last">   <!--4-->
               	 <?php $this->load->view($main);   ?>
               </div><!--4-->
        		</div><!--2-->                                                      
    		</div><!--1-->
	</body>
</html>
